package com.server;

import com.common.properties.AliOssProperties;
import com.common.properties.ErnieBotProperties;
import com.common.properties.JwtProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement //开启注解方式的事务管理
public class ServerApplication{
    @Bean
    public JwtProperties getJwtproperties(){
        return new JwtProperties();
    }

    @Bean
    public AliOssProperties getAliOssProperties(){
        return new AliOssProperties();
    }
    @Bean
    public ErnieBotProperties getErnieBotProperties(){
        return new ErnieBotProperties();
    }


    public static void main(String[] args) {
        SpringApplication.run(ServerApplication.class, args);
    }

}
